var aLa = new Array();
var aLo =new Array();
var aLink=new Array();
aLa[0]=53.309501;
aLo[0]=-6.224827;
aLink[0]="ComputerC.dae";
aLa[1]=53.309409;
aLo[1]=-6.226257;
aLink[1]="HealthC.dae";
aLa[2]=53.308192;
aLo[2]=-6.226594;
aLink[2]="StudentC.dae";
aLa[3]=53.309269;
aLo[3]=-6.223879;
aLink[3]="CSI.dae";
aLa[4]=53.308164;
aLo[4]=-6.229073;
aLink[4]="SportC.dae";
 
  
 
  
  
   
//get the current camera location
for(i=0;i<aLa.length;i++){
var lookAt = ge.getView().copyAsLookAt
(ge.ALTITUDE_RELATIVE_TO_GROUND);

// create the model geometry
var model = ge.createModel('');

// set up the model's location
var loc = ge.createLocation('');


loc.setLatitude(aLa[i]);
loc.setLongitude(aLo[i]);
model.setLocation(loc);

// set up the model's link (must be a COLLADA file).
// this model was created in SketchUp
var link = ge.createLink('');
model.setLink(link);

link.setHref('http://193.1.132.19/svn/spiderrepository/lei/UCDapp/'+aLink[i]);

// create the model placemark and add it to Earth
var modelPlacemark = ge.createPlacemark('');
modelPlacemark.setGeometry(model);
ge.getFeatures().appendChild(modelPlacemark);
window.placemark = modelPlacemark;
}

